package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_goodsMapper;
import com.business.domain.T_goods;

@Service("t_goodsService")
@Transactional
public class T_goodsService{
	private static Logger log = Logger.getLogger(T_goodsService.class.getName());

	@Resource
    private T_goodsMapper t_goodsMapper;


	public int save(T_goods obj){
		 return t_goodsMapper.save(obj);
	}

	public int update(T_goods obj){
		return t_goodsMapper.update(obj);
	}

	public int delete(T_goods obj){
		return t_goodsMapper.delete(obj);
	}

	public T_goods findById(T_goods obj){
		return t_goodsMapper.findById(obj);
	}

	public List findAll(T_goods obj ){
		 return t_goodsMapper.findAll(obj);
	}

	public List findAllT_goodsProduct(T_goods obj ){
		 return t_goodsMapper.findAllT_goodsProduct(obj);
	}

	public List findAllT_goodsProductBySearch(T_goods obj ){
		 return t_goodsMapper.findAllT_goodsProductBySearch(obj);
	}


	public int findCountAll(T_goods obj ){
		 return t_goodsMapper.findCountAll(obj);
	}

	public List findAllBySearch(T_goods obj ){
		 return t_goodsMapper.findAllBySearch(obj);
	}

	public int findCountAllBySearch(T_goods obj ){
		 return t_goodsMapper.findCountAllBySearch(obj);
	}

}
